var ws = new WebSocket('ws://10.9.64.101:8081')

ws.onopen = () => {
  
}

ws.onmessage = (msg) => {
  document.querySelector('#content').innerHTML += msg.data + '<br/>'
}

ws.onclose = () => {
  
}

ws.onerror = () => {
  
}